Mimicking Credit Ratings by a Perpetual-Debt Structural Model