Electrochromic and structural characteristics of mesoporous WO3 films prepared by a sol-gel method