The correlation between phase transition and photoluminescence properties of CsPbX3 (X = Cl, Br, I) perovskite nanocrystals