Sandwich-like, potassium(I) doped g-C3N4 with tunable interlayer distance as a high selective extractant for the determination of Ba(II).