Common Shocks and Currency Crises