Self-Fulfilling Debt Crises: A Quantitative Analysis