The influence of meltwater on the thermal structure and flow of the Greenland Ice Sheet