Effects of heterogeneity on the ecological diversity and redundancy of forest fauna