Influence of interband electronic transitions on the optical absorption in metallic nanoparticles