Dynamics of a tightly coupled mechanism for flagellar rotation. Bacterial motility, chemiosmotic coupling, protonmotive force