Modeling multidimensional and multispecies biofilms in porous media