Transition state determination by the X-method