The cycle of mountain glaciation