The impact of foreign stock markets on macroeconomic dynamics in open economies: A structural estimation