Why have the attempts at modernizing many of the African economies not been able to increase the countries' wealth?

Largely because of government corruption.