Noninvasive mechanical ventilation may be useful in treating patients who fail weaning from invasive mechanical ventilation: a randomized clinical trial