Numerical study of a self-filtering unstable resonator