Synthesis of 1,3-thiazines by a three-component reaction and their transformations into β-lactam-condensed 1,3-thiazine and 1,4-thiazepine derivatives