Evolving food webs with a flexible metapopulation model.