Humic matter and contaminants. General aspects and modeling metal ion binding