Electrical and Optical Tunability in All-Inorganic Halide Perovskite Alloy Nanowires.