Modeling mass transport and microbial activity in stratified biofilms