Rating Valuation: Principles and Practice