Influence of exchange and correlation on structural and electronic properties of AlN, GaN, and InN polytypes