Structure of the C-terminal domain of BamC