working principle of semi autogeneous and ball mill