On the derivation of thermospheric temperatures from dayglow emissions on Mars