Growth of uniformly doped black phosphorus films through versatile atomic substitution