Text this: Scattering theory for diffraction gratings /