Stability of Boolean networks with statedependent random impulses