How do density and temperature change higher in the atmosphere?