Properties of nickel nitrogen complexes in diamond: stability and electronic structure