On the preparation of azepinones