ball mill working principle and calculation