Family-work history and inequalities in old-age cognition in China