Generalized transition state theory. Classical mechanical theory and applications to collinear reactions of hydrogen molecules