Crosslinking reactions in coal pyrolysis