Structural characterization of coal-tar and petroleum pitches