Electrochromic properties of nanostructured tungsten oxide films prepared by surfactant-assisted sol-gel process