the layers of the atmosphere are determined based on air temperature,which has to do with the energy of the molecules in the air.where does this energy originally come from?