Text this: Optimizing an automated sleep detection algorithm using wrist-worn accelerometer data for individuals with chronic pain.