Automatic analysis of sleep recordings: a critical review.