principle of working of ball mill