Unveiling the complex configurational landscape of the intralayer cavities in a crystalline carbon nitride