A study of the electropolymerization of thiophene