Focusing of pulsed neutrons by traveling magnetic potentials