How does sleep affect chronic pain?