working principle for thermal mass flow meter