Effects of species interactions on resource heterogeneity