Automatic sleep classification using a data-driven topic model reveals latent sleep states