Phase Transition And Ion Transport In Lead Halide Perovskite Nanostructures