Preparation and characterization of stimuli-responsive lignins