Accumulation and erosion of Mars's south polar layered deposits