magnesium for cognition