Absorption properties of metal-semiconductor hybrid nanoparticles