An Upscaled Model for Permeable Biofilm in a Thin Channel and Tube