High-frequency scattering at edges in thin dielectric slabs loaded by periodic strip gratings