Stereoselective synthesis of novel thioglycosyl heterocycles