Utilization of thiocarbonyl transfer reagents. Preparation of thioamides, mercapto esters, and thiapyran derivatives