Formation and stability of 3-5 atom gold clusters from gold complexes during the catalytic reaction: Dependence on ligands and counteranions