Effects of Competition, Predation, and Dispersal on Species Richness at Local and Regional Scales