Formation Thermodynamics, Stability, and Decomposition Pathways of CsPbX3 (X = Cl, Br, I) Photovoltaic Materials