Rebel group interactions in multi-party civil wars