Diaphragm electromyographic activity as a predictor of weaning failure