Why are the inner planets (those which orbit inside the asteroid belt) all relatively small and rocky, whereas the outer planets are large and mostly composed of gas?