Which is the cause of earths distinction of layers?