A theory of competing interventions by external powers in intrastate conflicts: implications for war and armed peace