Relationships between cortisol, optimism, and perseverance measured in two military settings