Magnetic properties of Mg‐doped AlN zigzag nanowires