Electrochromism and smart window design