Generalized Boltzmann Equation for Molecules with Internal States