Conformational Polymorphism Gives Rise To Specialized Function In Bacterial Microcompartment Shell Proteins