Gravar-mail: The switching dynamics of the bacterial flagellar motor