N‐doped ZnO nanowires: Surface segregation, the effect of hydrogen passivation and applications in spintronics