Inference of closed loop stability for a class of stochastic switched systems