Reduction of flavins by thiols. 1. Reaction mechanism from the kinetics of the attack and breakdown steps