Tunable Length and Optical Properties of CsPbX3 (X = Cl, Br, I) Nanowires with a Few Unit Cells.