The application of gas phase and solid state X-ray photoelectron spectroscopy to the investigation of derivatives containing the repeating SN unit