Optimization of Sodium Hydrosulfide Synthesis for Metal Recovery from Wastewater Using Flue Gas Containing H2S