Elastic deuteron-nucleus scattering as a discretized three-body problem