Essays on credit default swaps and debtor-creditor relationships