Growth of p-type ZnO films and fabrication of ZnO photodiode-based UV detectors