Spin dynamics in inhomogeneous and defected low dimensional systems