Tuning technique to optimize input power of a cross-phase modulation wavelength converter