The critical slip distance for seismic and aseismic fault zones of finite width;