Synthesis of a field source for the electromagnetic stimulation of peripheral nerves