Evolution of structure and properties of PAN precursors during their conversion to carbon fibers