Perturbations on the superconducting state of metallic nanoparticles: influence of geometry and impurities