How does an electromagnetic flowmeter measure high-viscosity liquids?