Synthesis of transition metal complexes with heteroazomethinic ligands: a comparison of traditional and electrochemical methods