A rigorous procedure for the design of adsorption units for the removal of cadmium and nickel from process wastewaters