Improving the phase stability of inorganic lead halide perovskites through K/Rb doping