Powering the flagellar motor of Escherichia coli with an external voltage source