H-kernels by walks in H-colored digraphs and the color-class digraph