Shape-modification of patterned nanoparticles by an ion beam treatment