Quantitative determination of mercury