thermal mass flow meter working principle