Sequential elimination-reduction reactions promoted by samarium diiodide: synthesis of 2,3-dideuterioesters or -amides.