Corrosion at the Nanoscale: The Case of Silver Nanowires and Nanoparticles