What factors affect the service life of a thermocouple