Bubble transport in three-dimensional laminar gravity-driven flow - mathematical formulation