Defining integrity: An approach and military application