Bacterial flagellar capping proteins adopt diverse oligomeric states