Determinants of quality of life in patients with incurable cancer