Electrochemical characterization of halide perovskites: Stability & doping