Mixed valence compounds for near infrared electrochromism and electrofluorochromism