How we know about the earth's core