The Theoretical and Experimental Study of a Ferrofluid Inertial Sensor