Association between anxiety, health-related quality of life and functional impairment in primary care patients with chronic pain.