Tungsten oxide ion gel-gated transistors: how structural and electrochemical properties affect the doping mechanism