Text this: Dimension-dependent band alignment and excitonic effects in graphitic carbon nitride: a many-body perturbation and time-dependent density functional theory study