the earth can be made of layers of rock