energy calculation formula principle for ball mill