Metapopulation dynamics and distribution, and environmental heterogeneity induced by niche construction