Tuning of the crystal engineering and photoelectrochemical properties of crystalline tungsten oxide for optoelectronic device applications