how does energy from the sun enter the atmosphere