Isolation and Upgrading of Lignin from Agricultural Sources Using Phase Equilibria