Dissimilarity-based functions for ecological analysis