A large-scale metapopulation model of interspecific competition and environmental change