IMF: how to avoid the middle-income trap