Synthesis of benzo(or furo)[5,6]azepino[2,1-a]isoindolone derivatives: π-cyclisations of N-acyliminium ions