Ferromagnetic coupling in Mg‐doped passivated AlN nanowires: A first‐principles study