Electronic structure of sulfur studied by X-ray Absorption and Emission Spectroscopy.