Distance-based clustering of mixed data