Phase segregation due to ion migration in all-inorganic mixed-halide perovskite nanocrystals