Finding transition states using contangency curves