Spatially resolved multicolor CsPbX3 nanowire heterojunctions via anion exchange