Fast polarization switching of undulator radiation up to kilohertz with magnetic field modulation | Synapse