How were the materials that make up the earth come into being?