Optical, electrochemical and structural properties of long-term cycled tungsten oxide films prepared by sol–gel