Why are the gas planets found further from the sun that the rocky ones?