Changes in the structure of coals of different rank due to oxidation—effects on pyrolysis behaviour