the working principle of ball mill