Pore structure controls stability and molecular flux in engineered protein cages