Diffraction analysis of dielectric surface-relief gratings | Synapse