A treatment of complex ions in sea water