Synthesis of oxazines and thiazines by cyclodehydration of hydroxy amides and thioamides