Treatment of tobacco products or tobacco substitutes by chemical substances by organic substances containing a heterocyclic ring