Comparison of the Stability of Functionalized GaN and GaP.