Selective recovery of copper and nickel from electronic and galvanic industrial wastes