A thermodynamic approach to bio-availability and transport properties of toxic metals in soils