Temperature transients in flowing boreholes