Where did the early materials come from when the early earth was formed?