Controlled ambipolar doping and gate voltage dependent carrier diffusion length in lead sulfide nanowires.