Application of the impedance formalism to diffraction gratings with multiple coating layers | Synapse