International competitiveness and the macroeconomics of capital account opening