Measuring thermocouple time constants: a new method