A convenient quaternization/rearrangement procedure for conversion of thiazoles to medium- and large-sized N,S-heterocycles