Targeting during armed conflict: a legal analysis