does chronic pain impact your mental health