Three-Dimensional Brownian Dynamics Simulator for the Study of Ion Permeation through Membrane Pores