Film-forming electropolymerization