Functionality and molecular weight distribution of red oak lignin before and after pyrolysis and hydrogenation