Association between perceptions of prognosis and end-of-life outcomes for patients with advanced lung and gastrointestinal cancer.