Performance analysis of human cardiorespiratory system based on the second law of thermodynamics