Apparatus for measurements on the fragmentation of MeV molecular-ion beams