Theoretical investigation of the carbon nitrogen double bond