Coupling Genetic and Ecological-Niche Models to Examine How Past Population Distributions Contribute to Divergence