thermal mass flow sensor working principle