When identical functional groups are not identical: A DFT study of the effects of molecular environment on sulfur K-edge X-ray absorption spectra