Whose trade follows the flag? Institutional constraints and economic responses to bilateral relations