Understanding size dependence of phase stability and band gap in CsPbI3 perovskite nanocrystals.