Optical excitations of hybrid metal-semiconductor nanoparticles