How does an electromagnetic flowmeter measure liquid flow?