Measurement of the spin rotation parameter R in proton-proton elastic scattering at 6 and 16 GeV/c