Detection of chromosomal aneuploidy in ancient genomes