In situ crystallization of high performing WO3-based electrochromic materials and the importance for durability and switching kinetics