What drives successful economic diversification in resource-rich countries?