Electrical stimulation of nerves and their regeneration