Fabrication and characterization of ultraviolet photosensors from ZnO nanowires prepared using chemical bath deposition method