what traps heats in the atmosphere?