Currency crashes in emerging markets: An empirical treatment