Toward an effective and humane counterinsurgency