Mathematical modeling of three-dimensional cell cultures in perfusion bioreactors