On the functional diversity of partially distinct species: some theory and a practical example