Planetary thermal evolution models with tectonic transitions