Formation of β-barrel proteins