Electrochromic films of a methylcarbazole derivative: optimization of polymerization and optical contrast