Optimal Debt and Equity Values in the Presence of Chapter 7 and Chapter 11