Optical-model parameters and the analysis of (d, p) stripping experiments on 138Ba, 140Ce and 142, 144, 146Nd