An integrated video-analysis software system designed for movement detection and sleep analysis. Validation of a tool for the behavioural study of sleep