Hydrometallurgical processing of anode slime for recovery of valuable metals