How to Spot a Credit Crisis Before It Happens