Diffusion and reaction in percolating pore networks