Calculated ionization rates, ion densities, and airglow emission rates due to precipitating electrons in the nightside ionosphere of Mars