Theoretical Investigations of Thermodynamic Stability of III-III-N Semiconductor Alloys