A quantitative method for clustering size distributions of elements