Motion of a charged particle in the magnetosphere under the action of a sadden geomagnetic impulse