A mechanism for precision-sensing via a gradient-sensing pathway: A model of Escherichia coli thermotaxis