In Situ Heating of the Nightside Martian Upper Atmosphere and Ionosphere: The Role of Solar Wind Electron Precipitation