The role of structural and stratigraphic architecture on thermal regimes of rifts and passive margins