Text this: First-principles calculations of the structural and electronic properties of AIN, GaN, InN, AIGaN and InGaN