pain tolerance and sleep