Enhanced structural, optical, thermoelectric, photodetector, and photocatalytic properties of ZnO and W-doped ZnO thin films synthesized via spray pyrolysis: insights into active species involved in the photocatalytic degradation of methylene blue via scavenger-assisted studies