Predictions of electron temperatures in the Mars ionosphere and their effects on electron densities