Thermal Structure of the Middle and Upper Atmosphere of Mars from ACS/TGO CO2 Spectroscopy