Detention and prosecution by non-state armed groups