Effects of reaction conditions on the formation of poly(2-vinylpyridine) coatings by electropolymerization