Cerebral autoregulation and gas exchange studied using a human cardiopulmonary model