Ab initio calculations of the molecular structures and the electronic properties of sulphur-containing compounds