The Preparation of 4-Pentenenitriles and 3,4-Pentadienenitriles from N-(2-Alkenyl)- and N-(2-Alkynyl)amides