Determination of total respiratory compliance during artificial ventilation