First-principles simulation of cyanogen under high pressure: Formation of paracyanogen and an insulating carbon nitride solid