Synthesis of sulfureted heterocycles with herbicidal activity