working principle of the ball mill