Text this: First-principles study of structural, electronic and optical properties of AlN, GaN, InN and BN compounds