Comparison of postoperative cognitive function in patients undergoing surgery for ruptured and unruptured intracranial aneurysm.