Inferring the Demographic History of Inbred Species from Genome-Wide SNP Frequency Data.