Determination of the muon charge sign with the dipolar spectrometers of the OPERA experiment