Quantum chemistry of nitrogen compounds