A highly stereo- and regioselective synthesis of (E)-1,3-dienes and (E,E)-1,3,5-trienes