Serum magnesium levels and cognitive impairment in hospitalized hypertensive patients