Domain Adaptation with Conditional Distribution Matching and Generalized Label Shift