Text this: Electromagnetic polarization-controlled perfect switching effect with high-refractive-index dimers and the beam-splitter configuration