Long term changes in the semimajor axes of the outer planets