How did Earth obtain a solid crust and a molten internal composition?