Measuring the error in sleep estimation in normal subjects and in patients with insomnia