Predicting intervention onset in the ICU with switching state space models