Esters of thiocarboxylic acids and their derivatives