Analysing the Heat Flow in Foreland Basins