Competitive sorption of heavy metal ions by soils