How does energy provided by the sun influence global patterns of atmospheric movement and the temperature?