Nanoparticle dynamics in semidilute polymer solutions: Rings versus linear chains