Martian glaciation and the flow of solid CO2