Planar diffraction grating for board-level WDM applications