Evolution of Functional Groups during Pyrolysis Oil Upgrading