Scattering from arbitrary planar periodic screen consisting of resistive patches and dielectric layers