Chemistry of methane formation in hydrogasification of aromatics. 3. Aromatics with heteroatoms