Solar Flare Effects Upon the Ionospheres of Earth and Mars