Electroencephalographic sleep diagnosis of primary depression