Inferring Population Histories Using Genome-Wide Allele Frequency Data