Intramolecular diffusion-controlled reactions and polymer dynamics