A coupled model of the D and E regions of Mars' ionosphere for flare and non-flare electron density profiles