the earth can consists of a series of layers of rocks