Pyrolysis of cellulose and lignin