Scope and mechanistic study of the ruthenium-catalyzed ortho-C-H bond activation and cyclization reactions of arylamines with terminal alkynes.