A comprehensive understanding of water photooxidation on Ag3PO4 surfaces