Spontaneous breathing trial predicts successful extubation in infants and children