Effect of water vapour on the pyrolysis of solid fuels