Electrochromic and electrofluorochromic polyimides with fluorene-based triphenylamine