Effect of perturbations on information transfer in spin chains