Non-invasive ventilation as a strategy for weaning from invasive mechanical ventilation