A monolithic thin-film electrochromic window