A solenoidal spectrometer for positron-electron pairs produced in heavy-ion collisions