Military necessity does not admit of cruelty – that is, the infliction of suffering for the sake of suffering or for revenge, . . . nor of torture to extort confessions.