Simulating Diffusion Across a Selectively-Permeable Membrane