An ESCA study on the structure of sulphur-nitrogen chelating agents and their metal complexes