Which layer of the atmosphere has the highest density of gas molecules?