Optimism, social support, and mental health outcomes in patients with advanced cancer