Construction of electrochromic devices using thiophene based conducting polymers