Dynamic model of integrated cardiovascular and respiratory systems