Effects of Solar Flares on the Ionosphere of Mars