Ionization Energy as a Stability Criterion for Halide Perovskites