Small-diameter p-type SnS nanowire photodetectors and phototransistors with low-noise and high-performance