Synthesis of hierarchical WO3 nanostructured thin films with enhanced electrochromic performance for switchable smart windows