Interaction of the solar wind with the outer planets