Reaction-path dynamics in curvilinear internal coordinates including torsions