Stochastic quantum Zeno by large deviation theory