A fast computation method for the analysis of an array of metallic nanoparticles