How does the earth heat the atmosphere?