On-demand fabrication of porous silver nanostructures by chloride ions inspired galvanic replacement reaction