How the US overtook China as Africa's biggest foreign investor