How is the flow recording function of the electromagnetic flowmeter implemented?