Alliance Transitions and Great Power War