A Mechanistic Study of Phase Transformation in Perovskite Nanocrystals Driven by Ligand Passivation