Factors affecting the ratios of gases produced during the digestion of sludge