Neutron-deficient silver and cadmium isotopes