Diffusiophoretic motion of a charged spherical particle in a nanopore