Density of states prediction for materials discovery via contrastive learning from probabilistic embeddings