Modelling the work to be done by Escherichia coli to adapt to sudden temperature upshifts