Factors related to the quality of life in patients with bone metastases