Coal pyrolysis under synthesis gas, hydrogen and nitrogen