The adsorption characteristics of soils and removal of cadmium and nickel from wastewaters