A 39-year-old man is admitted to the hospital by his brother for evaluation of increasing forgetfulness and confusion during the past month. His brother reports that the patient has been drinking heavily and eating very little, and has been slightly nauseated and tremulous. He wanders at night because he cannot sleep. On admission to the hospital, intravenous administration of 5% dextrose in water is initiated. Two hours later, the patient has ophthalmoplegia and is completely confused. Which of the following is the most appropriate next step in management?