The Nonlinear Dynamics of Foreign Reserves and Currency Crises