An elusive balance: explaining Pakistan's fluctuating civil-military relationship