Magnetic stimulation of peripheral nerves