Factors associated with perceived cognitive impairment in patients with advanced lung cancer: a cross-sectional analysis