Determination of total and free copper(II) and cadmium(II) in freshwater samples by chelating resin titration with a resin containing iminodiacetic groups