Optimal Taxation with State-Contingent Debt