Currency Crashes, Tail Risk and Contingent Capital