Impact of foreign capital inflows on economic growth in the presence of currency and banking crises