ball mill motor working principle