Metallic surface doping of metal halide perovskites