The peril of proportions: robust niche indices for categorical data