A Lattice-Gas Cellular Automaton to Model Diffusion in Restricted Geometries