The role of psychological factors in chronic pain