Electrochromic and electrofluorochromic switching devices using organic mixed-valence compounds