what is the difference between the inner and outer planets