Noninvasive positive pressure ventilation for weaning from invasive mechanical ventilation