Defining the rest interval associated with the main sleep period in actigraph scoring