What is the method for calculating the flow rate of the measured medium in an electromagnetic flow meter?