Evaluation of the psychological status of patients during and after weaning from mechanical ventilation