Solar-wind sputtering of the martian atmosphere