Fundamental First-Principles Basis for Stability and Optoelectronic Characteristics in Lead-Free Mg 3 PCl 3 Perovskite | Synapse