Mars atmosphere 'eroded by Sun activity'