Bonding of H atoms to Ir4 clusters: the effect of Mg2+ ions