Optical clock recovery with dual-wavelength output from degraded RZ and NRZ signals