Quality of Life, Negative Emotions, Self-Efficacy and Quality of Sleep in Patients with Chronic Pain: Effects of a Program of Psychological Intervention