Criterion of the Fredholmness of singular operators with piece-wise continuous coefficients in the generalized Hölder spaces with weight