The brittle-ductile transition in tectonic boundary zones