Stability analysis of chemical reaction networks by decomposing them into weakly reversible sub-networks