Non-stoichiometric W(18)O(49-x)S(x) nanowires for wide spectrum photosensors with high internal gain.