Folding and assembly of β-barrel membrane proteins