Integrated energy storage and electrochromic function in one flexible device: an energy storage smart window | Synapse