Extension of dynamical mean-field theory by inclusion of nonlocal two-site correlations with variable distance