Conformal Selective Prediction with General Risk Control