Surface ligand engineering of CsPbBr3 perovskite nanowires for high-performance photodetectors.