Local-foreign technology interface, resource-based development, and industrial policy: how Chile and Malaysia are escaping the middle-income trap