Electrochromic Materials for optical switching devices