Ternary complexes in the spectrophotometric determination of trace amounts of silver(I) and cadmium(II)