Longitudinal associations between coping strategies, locus of control and health-related quality of life in patients with breast cancer or melanoma