Thermal and base-catalyzed isomerizations of birdcage and half-cage compounds