thermal mass flowmeter working principle