Debt relief and debt rescheduling: The optimal-contract approach