Biogenesis of thiosulfate in microorganisms and its applications for sustainable metal extraction