Synthesis of a Novel Type of Electrochemically Doped Vinyl Polymer Containing Pendant Terthiophene and Its Electrical and Electrochromic Properties