Changes in metal nanoparticle shape and size induced by swift heavy-ion irradiation