How does earth's distance from the sun affect the climate?