Synthesis and electrochemical characterization of thiophene derivatives with terpyridine substituents as precursors of functionalized conducting polymers.