mental health and chronic pain