The Earth's surface controls the depth-dependent seismic radiation of megathrust earthquakes