Measuring gas temperature during spin-exchange optical pumping process