magnesium benefits headache