Hydrogeological control of the thermal regime of a sub-alpine headwater stream