and function of ball mill