Performance evaluation of an automated single-channel sleep–wake detection algorithm