Structure of ionic fluids in equilibrium with a microporous ionic matrix