The effect of molecular structure of n‐containing heterocyclic compounds on their wear properties