The legacies of slavery in and out of Africa