The richness–heterogeneity relationship differs between heterogeneity measures within and among habitats