A 47-year-old man presents to the emergency department with weakness and shakiness. He has a long history of alcohol abuse but significantly decreased his usual daily alcohol intake over the past week because of gastrointestinal upset, nausea, and diarrhea. Medical history is otherwise unremarkable, and he takes no medications.

On physical examination, the patient is awake and oriented but tremulous. Mucous membranes are dry. Temperature is 37.3 °C (99.1 °F), blood pressure is 139/76 mm Hg, pulse rate is 101/min, and respiration rate is 15/min. BMI is 19. Cardiopulmonary examination is unremarkable. The abdomen is diffusely tender to palpation. Periodic spontaneous twitching is noted in the major muscle groups.

Laboratory studies are significant for a serum calcium level of 6.5 mg/dL (1.6 mmol/L), serum albumin level of 2.6 g/dL (26 g/L), serum potassium of 3.4 mEq/L (3.4 mmol/L), and normal kidney function studies. Serum parathyroid hormone and 25-hydroxyvitamin D levels are pending.

An electrocardiogram shows prolongation of the QT interval.

Which of the following is the most appropriate next diagnostic test to evaluate this patient's hypocalcemia?