Gold-catalyzed domino cyclization to diverse polyheterocyclic frameworks: mechanism, origin of the cooperative hydrogen bond, and role of π-stacking interactions