how does thermal mass flow meter work