Diffusion-limited encounter rate in a three-dimensional lattice of connected compartments studied by Brownian-dynamics simulations.