A comparative study on magnetism in Zn-doped AlN and GaN from first-principles