which layer in the atmosphere is second closest to the earth?