Electrochromic films of vinylcarbazole derivatives