P-type conductivity and stability of nitrogen-doped zinc oxide prepared by magnetron sputtering