On clustering uncertain and structured data with Wasserstein barycenters and a geodesic criterion for the number of clusters