Synthesis of substituted 4-(3-alkyl-1,2,4-oxadiazol-5-ylmethyl)-3,4-dihydro-2H-1,4-benzoxazines and 4-(1H-benzimidazol-2-ylmethyl)-3,4-dihydro-2H-1,4-benzoxazines