Text this: Automatic time in bed detection from hip-worn accelerometers for large epidemiological studies