thermal flow meter working principle