Structural basis for the oxidation of thiosulfate by a sulfur cycle enzyme