A modified fountain spectrometer for measuring double differential cross sections in ion-atom collisions