Wavelength selective switches for SDM networks