Determination of trace amounts of mercury(II) and silver(I): a catalytic method