A comparative analysis of measures of social homogeneity