Fast electroholographic wavelength selective switching implemented in a slab waveguide