Studies in bridge head nitrogen heterocyclics: synthesis of condensed azepines, thiazepines and related compounds