Acceleration of protons and deuterons polarized in the horizontal plane by the RCNP cyclotron