Reactions of imides with samarium(ii) iodide