SMS dit: Tangent space and dimension estimation with the Wasserstein distance