Theoretical mechanistic study of the TBD-catalyzed intramolecular aldol reaction of ketoaldehydes.