Origin of Noble Gases in the Terrestrial Planets