CDS and Equities: The Role of Credit Rating