Low levels of serum magnesium are associated with poststroke cognitive impairment in ischemic stroke patients