Efficient synthesis of tungsten oxide hydrate-based nanocomposites for applications in bifunctional electrochromic-energy storage devices