Understanding diffraction grating behavior: including conical diffraction and Rayleigh anomalies from transmission gratings | Synapse