Ion-exchange treatment of complicated samples prior to ion chromatographic analysis