On the Dimensionality of Embeddings for Sparse Features and Data