Coexistence of Competing Populations Along an Environmental Gradient: A Simulation Study