Changes in the macromolecular structure of coals with pyrolysis temperature