A mathematical model of the human respiratory system