heat balance equation for ball mill