Theory of contrast agents in magnetic resonance imaging: Coupling of spin relaxation and transport