Thermochemical conversion of lignin for fuels and chemicals