Foreign output and price shocks and macroeconomic activity in Korea