Transition Metal-Catalyzed Intramolecular Cyclization of 1,5- and 1,6-Dienes via Direct Cleavage and Addition of the Carbon–Hydrogen Bond