Gated pores for gas storage