Electrosynthesis and comparative studies on carboxyl-functionalized polythiophene derivatives