How did tectonic plates help shape the early earth?