Photochemical synthesis of 1,2-diazepines. V. Synthesis and rearrangements of 1,2-diazepines