Plasmonic nanoparticles in the quantum size regime