Learning Disentangled Joint Continuous and Discrete Representations