How Bankruptcy affects Credit Ratings