An expeditious synthesis of cyclic imides