Deficient energy metabolism is associated with low free magnesium in the brains of patients with migraine and cluster headache