Determination of trace elements