The effect of the chemical structure of polyheteroarylenes on their resistance to thermal oxidation