Measurement of exhaust gas temperatures: Theoretical and experimental analysis