Determination of diffusion layer thickness on a biofilm