Open Ensemble Modeling of Confined Electrolytes