Exploring the mechanism of tryptophan 2,3-dioxygenase