Rating systems, procyclicality and Basel II: an evaluation in a general equilibrium framework