Stability analysis of stochastic composite systems