Intraoperative electrophysiologic aid to nerve repair