Establishing combustion temperature in a hydrogen-fuelled engine using spectroscopic measurements