Diffraction Gratings for Optical Communication - Case Studies