Inferring human population sizes, divergence times and rates of gene flow from mitochondrial, X and Y chromosome resequencing data