The impacts of solar wind on the Martian upper atmosphere