Measuring dependence in the Wasserstein distance for Bayesian nonparametric models