Hitless dynamic wavelength allocation in coherent WDM-PONs