Surgery can cause cognitive losses in some seniors