Reactive-oxygen-species-mediated mechanism for photoinduced antibacterial and antiviral activities of Ag3PO4