Modulation of Flagellar Rotation in Surface-Attached Bacteria: A Circuit for Rapid Surface-Sensing