Why do scientists classify the earth's core into an inner and outer layer?