Hydrodynamics of tapered anaerobic fluidized beds for metabolic gas production