Why do the outer planets take so much longer to orbit the sun than the inner planets?