A detailed theoretical analysis of the free induction decay (FID) and spin echo (SE) MR signal formation in the presence of mesoscopic structure-specific magnetic field inhomogeneities is developed in the framework of the Gaussian phase distribution approximation. The theory takes into account diffusion of nuclear spins in inhomogeneous magnetic fields created by arbitrarily shaped magnetized o...