Molecular Dynamics Simulation of Ion Distribution in Nanochannels