Energy storage smart window with transparent-to-dark electrochromic behavior and improved pseudocapacitive performance