psychological factors in pain management