The electronic structure of some sulphur-containing heterocycles