Hybrid semiconductor–metal nanoparticles: from architecture to function