Ultrafast formation of an intramolecular cation–pi bond