Chemical stability and instability of inorganic halide perovskites