The generalized transition state method