Perceptions of prognosis and end-of-life care outcomes in patients with advanced lung and gastrointestinal cancer