Synthesis and characterization of functionalized polythiophene for polymer-sensitized solar cell