Separation and recovery of iron and arsenic from acid leaching wastewater by valence state transformation