The effect of thermally induced chemical transformations on the structure and properties of carbon fibre precursors