Optical and electrochemical characteristics of sol-gel deposited tungsten oxide films: a comparison