How were the inner planets formed? What allowed earth to become hospitable for life?