Rotational motion and lateral migration of an elliptical magnetic particle in a microchannel under a uniform magnetic field