Impact of hydration and temperature history on the structure and dynamics of lignin