Peroxide-metal ion oxidations. II. Convenient synthesis of imides