Analyzing the Thermal History of Sedimentary Basins: Methods and Case Studies