Near-Infrared and Ultraviolet Photodetector Based on p-n Homojunction of Undoped and Phosphorus-Doped Zinc Oxide