Use of Electrochemistry in the Synthesis of Heterocyclic Structures.