Self-sacrificial synthesis of porous Ag3PO4 architectures with enhanced photocatalytic activity