Conformal Inference for Open-Set and Imbalanced Classification