Gas distribution in a two-compartment model during volume or pressure ventilation : role of elastic elements