Shortly after the Earth first formed, intense heat built up and large portions of the planet became molten. What happened to the Earth over time?