Influence of External Conditions on the Black-to-Yellow Phase Transition of CsPbI3 Based on First-Principles Calculations: Pressure and Moisture