Continuum-discretized coupled-channels calculations for three-body models of deuteron-nucleus reactions