High-quality resonances in terahertz composite slabs based on metal gratings. (1st October 2022)