Compounds of structure (III) in which X is sulphur can be prepared by reaction of a compound of structure (IIIA) in which R is hydrogen, with for example chlorine and lead thiocyanate or potassium thiocyanate in methanol, followed by triphenyl phosphine and aqueous acid.