Elastic and inelastic deuteron scattering from 124Te and 146Nd