Particle-based Simulation of Conductance of Solid State Nanopores and Ion Channels