Bifunctional ZnO nanowire/ZnSnO3 heterojunction thin films for photoelectrochemical water splitting and photodetector applications