Design and characterization of a durable and highly efficient energy-harvesting electrochromic window