Analytic study of the modification of trapped-particle orbits by toroidal modes