A structured ancestral population for the evolution of modern humans