An integrated mathematical model of the cardiovascular and respiratory systems