Space weather effects on the Mars ionosphere due to solar flares and meteors