The valence and speciation of sulphur in glasses by X-ray absorption spectroscopy