Controlling lateral nanomixing and velocity profile of dilute ferrofluid capillary flows in uniform stationary, oscillating and rotating magnetic fields