Chemical equilibria in waste-waters during toxic metal ion removal by agricultural biomass