Conditional contrastive learning: Removing undesirable information in self-supervised representations