What are two reasons why the terrestrial planets formed closer to the Sun after the supernova event that initiated the formation of the solar system?