Influence of the interplanetary magnetic field orientation on polar cap ion trajectories: Energy gain and drift effects