Reactivity of curved and planar carbon–nitride structures