Electrochemical synthesis and characterization of copolyviologen films