Retrieval of temperature and composition from NIMBUS 7 SAMS measurements