Intramolecular energy flow and bond dissociation in iodoacetylene and iododiacetylene