Reinforced urn processes for credit risk models