Lithospheric dynamics of Earth’s subduction zones and Martian tectonic provinces