Longitudinal dispersion of liquid flowing through fixed and fluidized beds