Weaning with end-tidal CO2 and pulse oximetry