Phase Stability and Electronic Structure of GaAs1–xNx Alloys