Determination of sulfur species using a glassy-crystalline chalcogenide membrane