The effect of the local field and dipole-dipole interactions on the absorption spectra of noble metals and the plasmon resonance of their nanoparticles