Adversarial domain adaptation using contrastive learning