Effects of elevated oxygen and carbon dioxide partial pressures on respiratory function and cognitive performance