A Trajectory-Based Method to Explore Reaction Mechanisms