Stability of solitary waves of a generalized two-component Camassa-Holm system