Online calculation of lung volumes by digital computer from a plethysmographic measurement of ventilatory flow