magnesium and cognition