How the geometric configuration and the surface charge distribution influence the ionic current rectification in nanopores