A review of non-Markovian models for the dynamics of credit ratings