Text this: Effects of structural variations to x-ray absorption spectra of g-C3N4