Structural insights into higher-order assembly and function of the bacterial microcompartment protein PduA