A simple model of monetary policy and currency crises