how do the inner planets differ from the outer planets