explain how the nebular theory accounts for the differences in composition of the inner and outer planets