Estimating Population Histories Using Single-Nucleotide Polymorphisms Sampled Throughout Genomes