The brittle-ductile transition in active volcanoes