X-Ray absorption studies of bonding environments in graphitic carbon nitride