Preconcentration and determination of calcium and magnesium in brine with flow-injection systems