Fabrication of nanostructured NiO and NiO:Cu thin films for high-performance ultraviolet photodetector