Dynamic and polarization-dependent bound states in the continuum for optical encryption in hydrogel metagratings | Synapse