Functional group dependence of cross-linking reactions during pyrolysis of coal