Oscillatory magnetic fields for neutron resonance spin-echo spectroscopy