Purification and characterization of kraft lignin