A high-frequency magnetic chopper for polarized neutrons