Do investors care about credit ratings? An analysis through the cycle