Diffusion of linear macromolecules and spherical particles in semidilute polymer solutions and polymer networks