Ternary geochemical-tracing system in natural gas accumulation