An ab initio study of the mechanisms of the di- and tri-merization of thiocarbonyl compounds resulting in cyclic oligomers