Sol-gel electrochromic coatings