Stabilization, tuning and optimization of relative phases of reference interferometers in a hybrid optoelectronic correlator