Macroeconomic effects of foreign direct investment in the Spanish economy