Spatially selective p-type doping for constructing lateral WS2 p-n homojunction via low-energy nitrogen ion implantation | Synapse