Quantification of depth-dependent microbial growth in encapsulated systems