Deep Discrete Encoders: Identifiable Deep Generative Models for Rich Data with Discrete Latent Layers