optimization of anaerobic digestion