Leaching and reduction in hydrometallurgy