Improving electrochromic properties via copolymerization