The macro-financial effects of international bank lending on emerging markets