Neutral and ion-exospheres in the solar wind with applications to mercury