Doping engineering of lead halide perovskite nanocrystals for advanced optoelectronic applications