The Design of Corporate Debt Structure and Bankruptcy