Lignin characterization