All-optical Nyquist-WDM to Nyquist-OTDM conversion for flexible optical networks