CREDIT MARKET FRICTIONS IN AN OPEN ECONOMY