Effectiveness of international cooperation and attraction of foreign investment