Apparatus for two-body scattering experiments at 6 and 12 GeV/c with the CERN polarized deuteron target