Self-driven ultraviolet photodetectors based on ferroelectric depolarization field and interfacial potential