Role of lignin in a biorefinery: separation characterization and valorization