Rigorous coupled-wave analysis of metallic surface-relief gratings | Synapse