whst is the basis for dividing earths atmosphere into layers​