Origin of sex chromosome aneuploidy