Highly stereoselective synthesis of (2E,4E)-dienamides and (2E,4E)-dienoates via a double elimination reaction