Electrochromic property of a copolymer based on 5-cyanoindole and 3,4-ethylenedioxythiophene and its application in electrochromic devices