how to calculate the energy consumption of a ball mill