1,6-electrocyclization of 1-azatriene derivatives