Terahertz dual-band polarization control and wavefront shaping over freestanding dielectric binary gratings with high efficiency