Sexual dysfunction and chronic pain: the role of psychological variables and impact on quality of life