Density functional investigation of spin polarization in bulk and thin films of nitrogen intercalated Cu3N