Knowledge, attitudes and preferences of palliative and end-of-life care among patients with cancer in mainland China: a cross-sectional study