International capital flows and transmission of financial crises